5da7ca52e1fdbff6980b4966e2358cbafbe6fbca,plugins/hg4idea/src/org/zmlx/hg4idea/action/HgCompareWithBranchAction.java,HgCompareWithBranchAction,getBranchNamesExceptCurrent,#HgRepository#,57
Before Change
@NotNull
@Override
protected List<String> getBranchNamesExceptCurrent(@NotNull HgRepository repository) {
final Map<String, Set<Hash>> branches = repository.getBranches();
return new ArrayList<String>(branches.keySet());
}
After Change
@NotNull
@Override
protected List<String> getBranchNamesExceptCurrent(@NotNull HgRepository repository) {
final List<String> namesToCompare = new ArrayList<String>(repository.getBranches().keySet());
final String currentBranchName = repository.getCurrentBranchName();
assert currentBranchName != null;
Hash currentBranchHash = getBranchMainHash(repository, currentBranchName);